<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: pay_money.php 33234 2016-06-02 08:01:48Z mpage $
 */

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

$pay_id = C::t('#dzapp_base#dzapp_base_pay')->insert(array(
	'uid' => $_G['uid'],
	'username' => $_G['username'],
	'id' => $param['id'],
	'table' => $param['table'],
	'return' => $param['return'],
	'plugin' => $param['plugin'],
	'price' => $param['price'],
	'money' => $param['money'],
	'pay_type' => 'money',
	'add_time' => $_G['timestamp'],
	'ip' => $_G['clientip'],
), true);

require_once DISCUZ_ROOT.'./source/plugin/dzapp_'.$param['plugin'].'/function/function_'.$param['plugin'].'.php';
notify($param['id'], $param['price'], '', 'money', $param['table']);

showmessage('operation_done', $param['return'], array('href' => $param['return']), array('closetime' => true, 'showdialog' => 0, 'locationtime' => 1));

?>